/*
 * @Description:投塘管理
 */
import request from '@/utils/request'
export default {
    //添加
    add(data) {
        return request.post(`/fish/batch/inputPond/add`, { ...data })
    },
    //投塘密度提醒
    densityRemind(data) {
        return request.post(`/fish/batch/inputPond/densityRemind`, { ...data })
    },
    //编辑
    edit(data) {
        return request.post(`/fish/batch/inputPond/edit`, { ...data })
    },
    //投塘删除
    delList(list) {
        return request.get(`/fish/batch/inputPond/delListById?idList=${list}`)
    },
    // 主键查询
    queryById(id) {
        return request.get(`/fish/batch/inputPond/queryById?id=${id}`)
    },
    //条件查询
    queryByCondition(data) {
        return request.post(`/fish/batch/inputPond/queryByCondition`, { ...data })
    },
    //分页查询
    queryPageByCondition(data) {
        data.entity = !data.entity ? {} : data.entity
        return request.post(`/fish/batch/inputPond/queryPageByCondition`, { ...data })
    },
    //设施id列表查询详细信息
    queryDetailByFacilityIdList(list) {
        return request.get(`/fish/batch/inputPond/queryDetailByFacilityIdList?facilityIdList=${list}`)
    },
    //编辑投塘详情
    editDetail(data) {
        return request.post(`/fish/batch/inputPondDetail/edit`, { ...data })
    },
    //投塘详情主键删除
    delList(facilityId,delId) {
        return request.get(`/fish/batch/inputPondDetail/delById?facilityId=${facilityId}&id=${delId}`)
    },
    //封塘操作
    sealPond(facilityId) {
        return request.get(`/fish/batch/inputPond/sealPond?facilityId=${facilityId}`)
    },
    
};
